/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fd;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Administrador
 */
@Entity
@Table(name = "fd_clientes")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "FdClientes.findAll", query = "SELECT f FROM FdClientes f"),
    @NamedQuery(name = "FdClientes.findByCliente", query = "SELECT f FROM FdClientes f WHERE f.cliente = :cliente"),
    @NamedQuery(name = "FdClientes.findByNombre", query = "SELECT f FROM FdClientes f WHERE f.nombre = :nombre"),
    @NamedQuery(name = "FdClientes.findByRuc", query = "SELECT f FROM FdClientes f WHERE f.ruc = :ruc"),
    @NamedQuery(name = "FdClientes.findByInterface1", query = "SELECT f FROM FdClientes f WHERE f.interface1 = :interface1"),
    @NamedQuery(name = "FdClientes.findByEstado", query = "SELECT f FROM FdClientes f WHERE f.estado = :estado")})
public class FdClientes implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "cliente")
    private Integer cliente;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 20)
    @Column(name = "nombre")
    private String nombre;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 20)
    @Column(name = "RUC")
    private String ruc;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 20)
    @Column(name = "interface")
    private String interface1;
    @Basic(optional = false)
    @NotNull
    @Column(name = "estado")
    private short estado;

    public FdClientes() {
    }

    public FdClientes(Integer cliente) {
        this.cliente = cliente;
    }

    public FdClientes(Integer cliente, String nombre, String ruc, String interface1, short estado) {
        this.cliente = cliente;
        this.nombre = nombre;
        this.ruc = ruc;
        this.interface1 = interface1;
        this.estado = estado;
    }

    public Integer getCliente() {
        return cliente;
    }

    public void setCliente(Integer cliente) {
        this.cliente = cliente;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getRuc() {
        return ruc;
    }

    public void setRuc(String ruc) {
        this.ruc = ruc;
    }

    public String getInterface1() {
        return interface1;
    }

    public void setInterface1(String interface1) {
        this.interface1 = interface1;
    }

    public short getEstado() {
        return estado;
    }

    public void setEstado(short estado) {
        this.estado = estado;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cliente != null ? cliente.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FdClientes)) {
            return false;
        }
        FdClientes other = (FdClientes) object;
        if ((this.cliente == null && other.cliente != null) || (this.cliente != null && !this.cliente.equals(other.cliente))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "fd.FdClientes[ cliente=" + cliente + " ]";
    }
    
}
